{% extends 'forum/base/main.html' %}

{% block main %}
<div id="board_menu">
    <div id="board_menu_left">
        当前位置: LCForum » <a href="{% url 'board' tboard=board.name %}">{{ board.showname }}</a>
    </div>
    <div id="board_menu_right">
        {% if 'post' in perm_list %}
        <a href="{% url 'new_topic' tboard=board.name %}">发布内容</a>
        ·
        {% endif %}
        <a href="#">本版精华</a>
        ·
        <a href="#">版块管理</a>
    </div>
</div>
<div id="listpage">
    <div class="list_line list_line_head">
        <span class="list_head_id list_td list_th">ID</span>
        <span class="list_head_author list_td list_th">作者</span>
        <span class="list_head_published list_td list_th">发布日期</span>
        <span class="list_head_title list_td list_th">文章标题</span>
        <span class="list_head_manage list_td list_th">发布内容</span>
    </div>
    {% for item in posts %}
    <div class="list_line list_hover">
        <span class="list_head_id list_td">{{ item.id }}</span>
        <span class="list_head_author list_td">{{ item.author|default:"匿名" }}</span>
        <span class="list_head_published list_td">{{ item.post_time|date:"M dS"}}</span>
        <span class="list_head_title list_td"><a href="{% url "single_post" id=item.id %}">{{ item.title|truncatechars:30 }}</a></span>
        <span class="list_head_manage list_td">增·删·改·查</span>
    </div>
    {% endfor %}
</div>
{% endblock main %}

{% block bottomnavibar %}
    {% include "forum/board/navi_bar.html" %}
{% endblock bottomnavibar %}
